<%@ page contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
	<link href="${pageContext.request.contextPath }/css/main.css" rel="stylesheet" type="text/css" media="all" />

	<script type="text/javascript" src='<c:url value="/js/jquery-3.2.1.js"></c:url>'></script>

	<script type="text/javascript">
		$(function(){
			$("#btn_save").click(function(){
				if($("#customername").val()==''){
					alert("请填写用户名称");
					return;
				}
				if($("#tel").val()==''){
					alert("请填写真实姓名");
					return;
				}
				if($("#cartype").val()==''){
					alert("请填您的密码");
					return;
				}
				$("#saveForm").submit();
			});
		})
	</script>
</head>

<body class="content-pages-body">
<div class="content-pages-wrap">
	<div class="commonTitle">
		<h2>&gt;&gt;用户新增</h2>
	</div>
	<form id="saveForm" name="saveForm" action="${pageContext.request.contextPath }/user.do?op=save" method="post">
		<table border="0" cellspacing="1" cellpadding="0" class="commonTable">
			<tr>
				<td width="10%" align="right" class="title"><span class="required">*</span>用户名：</td>
				<td width="15%" align="left"><input type="text" style="height:20px" id="LoginName" name="LoginName"></td>
				<td width="10%" align="right" class="title"><span class="required">*</span>真实姓名：</td>
				<td width="15%" align="left"><input type="text" style="height:20px" id="UserName" name="UserName"></td>
			</tr>
			<tr>
				<td width="10%" align="right" class="title"><span class="required">*</span>密 码</td>
				<td width="15%" align="left"><input type="password" style="height:20px" id="LoginPwd" name="LoginPwd"></td>
				<td width="10%" align="right" class="title"><span class="required">*</span>确认密码</td>
				<td width="15%" align="left"><input type="password" style="height:20px" id="reLoginPwd" name="reLoginPwd"></td>
			</tr>
		</table>
	</form>
</div>
<div id="formPageButton">
	<ul>
		<li><a href="javascript:void(0)" title="注测" class="btnShort" id="btn_save">保存</a></li>
		<li><a href="javascript:window.history.go(-1)" title="返回" class="btnShort">返回</a></li>
	</ul>
</div>

</div>

</body>
</html>
